package result;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class PageDTO {
    /**
     * 当前页
     */
    @NotNull(message = "当前页必填")
    @Min(value = 1, message = "当前页最小是1")
    private Integer pageNumber = 1;

    /**
     * 每页大小
     */
    @NotNull(message = "分页大小必填")
    @Min(value = 1, message = "每页大小最小是1")
    private Integer pageSize = 10;

}
